Skip to content

docs(pc-mate): say which list starts work and which one approves it - #3044

Closed
AlexStocks wants to merge 1 commit into
oceanbase:masterfrom
AlexStocks:codex/pc-mate-triage-mode-doc
Closed

AlexStocks wants to merge 1 commit into
oceanbase:masterfrom
AlexStocks:codex/pc-mate-triage-mode-doc

Conversation

@AlexStocks

Copy link
Copy Markdown
Contributor

Which issue or RFC does this PR close?

Closes #.

Rationale for this change

allowed and maintainers answer different questions, and neither the README nor settings.example.yaml said so. A reader could not tell why a message from a listed person starts work while the same message from an unlisted person is answered and dropped.

The rule the configuration has: allowed says whose message may start work, and a message from someone on that list carries an explicit request. maintainers says who may resolve a case or approve a public write, so a maintainer may approve a write they did not ask for.

The empty list is the part that costs the most: an empty allowed takes every message in, but it also leaves the list of people with an explicit request empty, so every request is only inferred. An inferred request is accepted in triage.mode: auto alone. In response mode it is read, assessed, and then dropped without an answer. A reply mode that serves a group therefore needs the people it serves on allowed, or it answers nobody.

What changes are included in this PR?

  • pc-mate/README.md: a new section "Who may start work" that states the difference between the two lists and what an empty list means.
  • pc-mate/README.md: github.allowed and feishu.allowed join the list of settings switches.
  • pc-mate/settings.example.yaml: both allowed lists carry the rule in a comment.

This is the third commit of #3037, which was merged before the commit reached the branch. The change is the same as it was there; the earlier two commits are already in master.

Are there any user-facing changes?

Documentation only. No behavior, API, or configuration change.

How was this change tested?

  • cargo test --locked --manifest-path pc-mate/Cargo.toml — the same result as the base: the only failure is channels::github::tests::polling_a_changed_issue_keeps_unseen_human_comments_across_pages, which fails on the unmodified base because the local firewall drops the test server's loopback connection.
  • Read against the configuration the supervisor reads: pc-mate/src/supervisor/authority.rs builds the list of explicit requests from github.allowed and feishu.allowed, and pc-mate/src/kernel/judgements.rs accepts an inferred request only when the triage mode is auto.

AI usage statement

Codex (OpenAI) wrote the change.

@AlexStocks
AlexStocks requested a review from hidb4ai as a code owner December 4, 2026 08:46
The allowed list is read in two places with different effects: a channel drops what comes from outside it, and the authority gate turns the people on it into explicit requests. An empty list therefore takes every message in and leaves the list of explicit requesters empty, so every request is inferred, and an inferred request is accepted in triage.mode auto alone. In response mode the message is read, assessed and dropped without an answer, which is why a reply mode that serves a group needs the people it serves on the list. The maintainers list answers a different question and is described next to it.
@AlexStocks
AlexStocks force-pushed the codex/pc-mate-triage-mode-doc branch from 4c5be4c to 45c0cc4 Compare December 4, 2026 08:46
@AlexStocks

Copy link
Copy Markdown
Contributor Author

折叠进 #3042:这一段文档改动(README 的 Who may start work 段与 settings.example.yaml 两个 �llowed 的注释)已经并入 #3042 的分支,#3044 关闭,避免同一个改动出现在两个 PR 里。#3042 的标题和描述已同步更新。

@AlexStocks AlexStocks closed this Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant